package com.wrupple.muba.catalogs.client.widgets.fields.cells;

import com.google.gwt.event.shared.EventBus;
import com.wrupple.muba.catalogs.client.activity.process.task.CatalogInteractionState.Mode;
import com.wrupple.muba.common.shared.Process;
import com.wrupple.muba.common.shared.State.ProcessManager;
import com.wrupple.vegetate.domain.FieldDescriptor;

public abstract class ProcessDelegatingEditableField<T> extends AbstractDelegatingEditableField<T> {
	private String nestedProcessLocalizedName;
	private Process<T, T> nestedProcess;
	
	public ProcessDelegatingEditableField(EventBus bus,ProcessManager pm,Process<T, T> nestedProcess, String nestedProcessLocalizedName,FieldDescriptor d, Mode mode) {
		super(bus, pm, d, mode);
		this.nestedProcessLocalizedName=nestedProcessLocalizedName;
		this.nestedProcess=nestedProcess;
	}

	

	@Override
	protected String getProcessLocalizedName() {
		return nestedProcessLocalizedName;
	}

	@Override
	protected Process<T, T> getDelegateProcess() {
		return nestedProcess;
	}

}
